import {lazy} from "react"
import {
    HomeOutlined,
    SettingFilled,
    SmileOutlined,
    SyncOutlined,
   
  } from '@ant-design/icons';
const routes=[{
    path:'/Add',
    component: lazy(()=>import('../views/Add')) ,
    ico:<HomeOutlined/>,
    title:'新增圣品'
},{
    path:'/Bianji',
    component:lazy(()=>import("../views/Binaji")),
    ico:  <SettingFilled/>,
    title:"商品编辑",
},{
    path:'/Home',
    component:lazy(()=>import("../views/Home")),
    ico:  <SmileOutlined/>,
    title:"供应商商品",
},{
    path:'/Details/:id',
    component:lazy(()=>import("../views/Deatils")),
    ico: <SyncOutlined/>,
    title:"详情",
},
{
    path:'/',
    redirect: '/Home',  // 重定向:重新指向其它path,会改变网址

}]
export default routes